<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" th:href="@{https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback}"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/plugins/fontawesome-free/css/all.min.css}"
          href="../static/plugins/fontawesome-free/css/all.min.css">
    <!-- icheck bootstrap -->
    <link rel="stylesheet" th:href="@{/plugins/icheck-bootstrap/icheck-bootstrap.min.css}"
          href="../static/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/dist/css/adminlte.min.css}"
          href="../static/dist/css/adminlte.min.css">
</head>

<!--<body class="text-center">-->
<!--<form class="form-signin" th:action="@{/login}">-->
<!--    <h1 class="align-content-centerter" align="center">Please sign in</h1>-->
<!--    &lt;!&ndash;如果msg的消息显示为空，则不显示消息&ndash;&gt;-->
<!--    <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>-->
<!--    <div align="center">-->
<!--    <label class="sr-only" >Username</label>-->
<!--    <input type="text" name="username" class="form-control" required="" autofocus="">-->
<!--    </div>-->
<!--    <div align="center">-->
<!--    <label class="sr-only" >Password</label>-->
<!--    <input type="password" name="password" class="form-control" required="">-->
<!--    </div>-->
<!--    <div align="center">-->
<!--    <button class="btn-primary" type="submit" >登陆</button>-->
<!--    <p class="mt-5 mb-3 text-muted">© 2020-2021</p>-->
<!--    </div>-->
<!--</form>-->
<!--</body>-->
<body class="hold-transition login-page">
<div class="login-box">
    <div class="card card-outline card-primary">
        <div class="card-header text-center">
            <a href="http://www.shike.com.cn/" target="_blank" class="h5"><b>时刻</b>智能巡检系统</a>
        </div>
        <div class="card-body">
            <form th:action="@{/loginPage/login}" method="post">
                <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                <div class="input-group mb-3">
                    <input name="username" required="required" type="text" class="form-control" placeholder="用户名">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-user"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <input name="password" required="required" type="password" class="form-control" placeholder="密码">
                    <div class="input-group-append">
                        <div class="input-group-text">
                            <span class="fas fa-lock"></span>
                        </div>
                    </div>
                </div>
                <div class="input-group mb-3">
                    <!--图形验证码输入框-->
                    <input name="captcha" type="text" placeholder="验证码">
                    <!--图片指向图形验证码API-->
                    <img th:src="@{/Captcha/captcha.jpg}" alt="captcha" height="50px" width="100px" style="margin-left: 20px">
                </div>
                <div class="row">
                    <div class="col-6">
                        <button type="submit" class="btn btn-primary btn-block">登录</button>
                    </div>
                    <div class="col-6">
                        <button onclick="clearInput()" class="btn btn-primary btn-block">重置</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<!-- jQuery -->
<script th:src="@{/plugins/jquery/jquery.min.js}" src="../static/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script th:src="@{/plugins/bootstrap/js/bootstrap.bundle.min.js}" src="../static/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script th:src="@{/dist/js/adminlte.min.js}" src="../static/dist/js/adminlte.min.js"></script>
<script>
    function clearInput() {
        $('div input').val('');
    }
</script>

</body>

</html>
